<div class="card">
    <div class="heading">Join the Open-Source <span>Galaxy</span></div>
    <div class="content">
        <div class="item item--create">
            <svg height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                <path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z" fill="currentColor"></path>
            </svg>
            <span>Create</span>
        </div>
        <div class="item item--post">
            <svg height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                <path d="M4.99958 12.9998C4.99958 7.91186 7.90222 3.56348 11.9996 1.81787C16.0969 3.56348 18.9996 7.91186 18.9996 12.9998C18.9996 13.8227 18.9236 14.6263 18.779 15.4026L20.7194 17.2352C20.8845 17.3911 20.9238 17.6388 20.815 17.8381L18.3196 22.4132C18.1873 22.6556 17.8836 22.7449 17.6412 22.6127C17.5993 22.5898 17.5608 22.5611 17.5271 22.5273L15.2925 20.2927C15.1049 20.1052 14.8506 19.9998 14.5854 19.9998H9.41379C9.14857 19.9998 8.89422 20.1052 8.70668 20.2927L6.47209 22.5273C6.27683 22.7226 5.96025 22.7226 5.76498 22.5273C5.73122 22.4935 5.70246 22.4551 5.67959 22.4132L3.18412 17.8381C3.07537 17.6388 3.11464 17.3911 3.27975 17.2352L5.22014 15.4026C5.07551 14.6263 4.99958 13.8227 4.99958 12.9998ZM6.47542 19.6955L7.29247 18.8785C7.85508 18.3159 8.61814 17.9998 9.41379 17.9998H14.5854C15.381 17.9998 16.1441 18.3159 16.7067 18.8785L17.5237 19.6955L18.5056 17.8954L17.4058 16.8566C16.9117 16.39 16.6884 15.7044 16.8128 15.0363C16.9366 14.3721 16.9996 13.691 16.9996 12.9998C16.9996 9.13025 15.0045 5.69953 11.9996 4.04021C8.99462 5.69953 6.99958 9.13025 6.99958 12.9998C6.99958 13.691 7.06255 14.3721 7.18631 15.0363C7.31078 15.7044 7.08746 16.39 6.59338 16.8566L5.49353 17.8954L6.47542 19.6955ZM11.9996 12.9998C10.895 12.9998 9.99958 12.1044 9.99958 10.9998C9.99958 9.89525 10.895 8.99982 11.9996 8.99982C13.1041 8.99982 13.9996 9.89525 13.9996 10.9998C13.9996 12.1044 13.1041 12.9998 11.9996 12.9998Z" fill="currentColor"></path>
            </svg>
            <span>Post</span>
        </div>
        <div class="item item--inspire">
            <svg height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                <path d="M10.6144 17.7956C10.277 18.5682 9.20776 18.5682 8.8704 17.7956L7.99275 15.7854C7.21171 13.9966 5.80589 12.5726 4.0523 11.7942L1.63658 10.7219C.868536 10.381.868537 9.26368 1.63658 8.92276L3.97685 7.88394C5.77553 7.08552 7.20657 5.60881 7.97427 3.75892L8.8633 1.61673C9.19319.821767 10.2916.821765 10.6215 1.61673L11.5105 3.75894C12.2782 5.60881 13.7092 7.08552 15.5079 7.88394L17.8482 8.92276C18.6162 9.26368 18.6162 10.381 17.8482 10.7219L15.4325 11.7942C13.6789 12.5726 12.2731 13.9966 11.492 15.7854L10.6144 17.7956ZM4.53956 9.82234C6.8254 10.837 8.68402 12.5048 9.74238 14.7996 10.8008 12.5048 12.6594 10.837 14.9452 9.82234 12.6321 8.79557 10.7676 7.04647 9.74239 4.71088 8.71719 7.04648 6.85267 8.79557 4.53956 9.82234ZM19.4014 22.6899 19.6482 22.1242C20.0882 21.1156 20.8807 20.3125 21.8695 19.8732L22.6299 19.5353C23.0412 19.3526 23.0412 18.7549 22.6299 18.5722L21.9121 18.2532C20.8978 17.8026 20.0911 16.9698 19.6586 15.9269L19.4052 15.3156C19.2285 14.8896 18.6395 14.8896 18.4628 15.3156L18.2094 15.9269C17.777 16.9698 16.9703 17.8026 15.956 18.2532L15.2381 18.5722C14.8269 18.7549 14.8269 19.3526 15.2381 19.5353L15.9985 19.8732C16.9874 20.3125 17.7798 21.1156 18.2198 22.1242L18.4667 22.6899C18.6473 23.104 19.2207 23.104 19.4014 22.6899ZM18.3745 19.0469 18.937 18.4883 19.4878 19.0469 18.937 19.5898 18.3745 19.0469Z" fill="currentColor"></path>
            </svg>
            <span>Inspire</span>
        </div>
    </div>
    <button>Code to Infinity!</button>
</div>
<style>
/* From Uiverse.io by krokettenkoal - Tags: card */
.card {
  --bg-col: #010101;
  --space-col: #2d093a;
  --galaxy-col: #460a42;
  --space-gradient: radial-gradient(ellipse at top, var(--bg-col), transparent),
                    radial-gradient(ellipse at bottom, var(--galaxy-col) 10%, transparent 60%),
                    radial-gradient(ellipse at bottom right, var(--space-col), transparent);
  --space-gradient-alt: radial-gradient(ellipse at top left, var(--space-col), transparent),
                    radial-gradient(ellipse at bottom, var(--galaxy-col) 10%, transparent 60%),
                    radial-gradient(ellipse at bottom right, var(--bg-col), transparent);
  --stars: radial-gradient(circle at 52% 54%, rgba(255, 255, 255, 0.582) 3px, transparent 4px),
            radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.582) 2px, transparent 3px),
            radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.582) 3px, transparent 8px),
            radial-gradient(circle at 18% 21%, rgba(255, 255, 255, 0.582) 4px, transparent 5px),
            radial-gradient(circle at 36% 9%, rgba(255, 255, 255, 0.582) 3px, transparent 5px),
            radial-gradient(circle at 28% 31%, rgba(255, 255, 255, 0.39) 2px, transparent 3px),
            radial-gradient(circle at 62% 61%, rgba(255, 255, 255, 0.532) 3px, transparent 4px),
            radial-gradient(circle at 57% 66%, rgba(255, 255, 255, 0.842) 6px, transparent 8px),
            radial-gradient(circle at 65% 71%, rgba(255, 255, 255, 0.534) 1px, transparent 3px),
            radial-gradient(circle at 67% 68%, rgba(255, 255, 255, 0.651) 3px, transparent 3px),
            radial-gradient(circle at 43% 44%, rgba(255, 255, 255, 0.74) 2px, transparent 6px),
            radial-gradient(circle at 40% 39%, rgba(183, 243, 255, 0.842) 4px, transparent 10px),
            radial-gradient(circle at 41% 40%, rgba(255, 255, 255, 0.699) 5px, transparent 6px),
            radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.349) 2px, transparent 4px),
            radial-gradient(circle at 39% 42%, rgba(255, 255, 255, 0.747) 5px, transparent 7px),
            radial-gradient(circle at 80% 31%, rgba(255, 255, 255, 0.781) 4px, transparent 6px),
            radial-gradient(circle at 25% 64%, rgba(255, 255, 255, 0.425) 3px, transparent 4px),
            radial-gradient(circle at 41% 49%, rgba(255, 255, 255, 0.678) 3px, transparent 6px),
            radial-gradient(circle at 50% 37%, rgba(255, 255, 255, 0.336) 1px, transparent 3px),
            radial-gradient(circle at 4% 37%, rgba(255, 255, 255, 0.336) 1px, transparent 3px),
            radial-gradient(circle at 8% 60%, rgba(255, 255, 255, 0.336) 1px, transparent 4px),
            radial-gradient(circle at 12% 54%, rgba(255, 255, 255, 0.336) 1px, transparent 5px),
            radial-gradient(circle at 6% 59%, rgba(255, 255, 255, 0.336) 2px, transparent 10px),
            radial-gradient(circle at 9% 57%, rgba(255, 255, 255, 0.336) 1px, transparent 2px),
            radial-gradient(circle at 14% 61%, rgba(255, 255, 255, 0.336) 2px, transparent 6px);
  min-width: 30rem;
  padding: 2rem 4rem;
  border-radius: 2rem;
  background-color: #010101;
  background-image: var(--space-gradient), var(--stars);
  background-size: 175% 200%;
  background-repeat: no-repeat;
  box-shadow: 5px 7px 20px var(--bg-col);
  overflow: clip;
  animation: space-drift 180s ease-in-out infinite;
}

.heading {
  font-size: .9rem;
  text-align: center;
  color: rgb(189, 188, 141);
}

.heading span {
  font-size: 2.2rem;
  font-weight: bold;
  display: block;
  font-style: italic;
  margin-top: .25rem;
  background-image: linear-gradient(90deg, rgba(196, 157, 182, 0.21), rgb(134, 71, 141), rgb(170, 84, 161), rgba(163, 130, 192, 0.094));
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 15px 10px 55px plum;
  text-transform: uppercase;
  letter-spacing: 1rem;
  z-index: 99;
  animation: heading-stretch .7s forwards ease-out;
}

.heading span::before,
.heading span::after {
  content: '—';
}

.content {
  display: grid;
  place-items: center;
  padding: 2rem;
  z-index: 1;
}

.item {
  --item-duration: 8s;
  --idx: 0;
  display: flex;
  grid-area: 1 / 1;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  text-transform: lowercase;
  font-style: italic;
  opacity: 0;
  animation: item-fade var(--item-duration) infinite ease-in-out;
  animation-delay: calc(var(--idx) * var(--item-duration) / 3);
}

.item svg {
  width: 3rem;
  height: 3rem;
}

.item--create {
  --idx: 0;
}

.item--post {
  --idx: 1;
}

.item--inspire {
  --idx: 2;
}

button {
  --flight-duration: 3s;
  position: relative;
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  column-gap: 1ch;
  border: none;
  border-bottom: 2px solid rgb(189, 188, 141);
  border-top: 2px solid rgb(189, 188, 141);
  border-radius: .9rem;
  background-color: transparent;
  color: rgb(189, 188, 141);
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 200ms ease-out;
  backdrop-filter: blur(20px);
}

button::before,
button::after {
  offset-path: path('m 0 10 c 8 -25 0 -45 400 -400');
  position: absolute;
  left: -30px;
  opacity: 0;
}

button::before {
  content: '🚀';
  transform: rotate(60deg);
  z-index: 1;
}

button::after {
  content: '💨';
  z-index: 0;
  transform: scale(0) rotate(180deg);
}

button:hover {
  color: var(--space-col);
  border-color: transparent;
  background-color: rgba(229, 202, 69, 0.637);
}

button:hover::before {
  animation: rocket-flight var(--flight-duration) infinite ease-in-out;
}

button:hover::after {
  z-index: 0;
  transform: rotate(180deg);
  animation: rocket-start var(--flight-duration) infinite ease-in-out;
}


/*
    ANIMATION: HEADING
*/

@-webkit-keyframes heading-stretch {
  from {
    opacity: .8;
    transform: scale(.8);
    letter-spacing: normal;
    filter: blur(50px);
    text-shadow: none;
  }

  to {
    opacity: unset;
    transform: unset;
    letter-spacing: 1rem;
    filter: unset;
  }
}

@-moz-keyframes heading-stretch {
  from {
    opacity: .8;
    transform: scale(.8);
    letter-spacing: normal;
    filter: blur(50px);
    text-shadow: none;
  }

  to {
    opacity: unset;
    transform: unset;
    letter-spacing: 1rem;
    filter: unset;
  }
}

@keyframes heading-stretch {
  from {
    opacity: .8;
    transform: scale(.8);
    letter-spacing: normal;
    filter: blur(50px);
    text-shadow: none;
  }

  to {
    opacity: unset;
    transform: unset;
    letter-spacing: 1rem;
    filter: unset;
  }
}

/*
    ANIMATION: SPACE
*/

@-webkit-keyframes space-drift {
  0% {
    background-position: 0% 50%;
  }

  33% {
    background-position: 80% 0%;
  }

  67% {
    background-position: 80% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@-moz-keyframes space-drift {
  0% {
    background-position: 0% 50%;
  }

  33% {
    background-position: 80% 0%;
  }

  67% {
    background-position: 80% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes space-drift {
  0% {
    background-position: 0% 50%;
  }

  33% {
    background-position: 80% 0%;
  }

  67% {
    background-position: 80% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/*
    ANIMATION: ROCKET FLIGHT
*/

@-webkit-keyframes rocket-flight {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }

  10% {
    opacity: 1;
  }

  100% {
    offset-distance: 100%;
    opacity: .3;
    transform: scale(.3);
  }
}

@-moz-keyframes rocket-flight {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }

  10% {
    opacity: 1;
  }

  100% {
    offset-distance: 100%;
    opacity: .3;
    transform: scale(.3);
  }
}

@keyframes rocket-flight {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }

  10% {
    opacity: 1;
  }

  100% {
    offset-distance: 100%;
    opacity: .3;
    transform: scale(.3);
  }
}

/*
    ANIMATION: ITEM FADE
*/

@-webkit-keyframes item-fade {
  0%, 20% {
    opacity: 0;
    transform: translateX(10px);
    filter: blur(5px);
  }

  40%, 60% {
    opacity: 1;
    transform: unset;
    filter: unset;
  }

  70%, 100% {
    opacity: 0;
    transform: translateX(-10px);
    filter: blur(5px);
  }
}

@-moz-keyframes item-fade {
  0%, 20% {
    opacity: 0;
    transform: translateX(10px);
    filter: blur(5px);
  }

  40%, 60% {
    opacity: 1;
    transform: unset;
    filter: unset;
  }

  70%, 100% {
    opacity: 0;
    transform: translateX(-10px);
    filter: blur(5px);
  }
}

@keyframes item-fade {
  0%, 20% {
    opacity: 0;
    transform: translateX(10px);
    filter: blur(5px);
  }

  40%, 60% {
    opacity: 1;
    transform: unset;
    filter: unset;
  }

  70%, 100% {
    opacity: 0;
    transform: translateX(-10px);
    filter: blur(5px);
  }
}

/*
    ANIMATION: ROCKET START (SMOKE)
*/

@-webkit-keyframes rocket-start {
  0% {
    transform: scale(0) rotate(180deg) translateX(0);
  }

  20% {
    opacity: 1;
    transform: scale(1) rotate(180deg) translateX(12px);
  }

  100% {
    opacity: 0;
    transform: scale(0) rotate(180deg) translateX(20px);
  }
}

@-moz-keyframes rocket-start {
  0% {
    transform: scale(0) rotate(180deg) translateX(0);
  }

  20% {
    opacity: 1;
    transform: scale(1) rotate(180deg) translateX(12px);
  }

  100% {
    opacity: 0;
    transform: scale(0) rotate(180deg) translateX(20px);
  }
}

@keyframes rocket-start {
  0% {
    transform: scale(0) rotate(180deg) translateX(0);
  }

  20% {
    opacity: 1;
    transform: scale(1) rotate(180deg) translateX(12px);
  }

  100% {
    opacity: 0;
    transform: scale(0) rotate(180deg) translateX(20px);
  }
}
</style>
